package tay;

import java.io.IOException;

import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

public class WriteFile {
	public static void writeFile(Path p, FileSystem fs) throws Exception {
		FSDataOutputStream out = fs.create(p);
		out.writeUTF("Hello World!");
		fs.close();

	}
}
